<%--
  Created by IntelliJ IDEA.
  User: DMLYS
  Date: 2019/7/10
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>index</title>
</head>
<body>
<center>这里是首页</center>
<p>
    SpringBoot默认jar包使用嵌入式的TOMCAT，默认视图是Thymeleaf是不支持JSP的，但是你可以在pom文件中加入
    <!-- servlet依赖. -->
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>

    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
    </dependency>
    ；然后在application.properties文件中重定向JSP文件位置
    spring.mvc.view.prefix=/WEB-INF/jsp/
    spring.mvc.view.suffix=.jsp
</p>
</body>
</html>
